<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of user
 *
 * @author Juliano
 */
class User {
    
    public $tabela_user = "cms_usuarios";
    public $db;
    
    public function __construct() {
        $this->db = new Dbconnection();
    }
    
    public function getUser($id_user,$campo="*"){
        $getuser = $this->db->select($this->tabela_user, $campo, "id={$id_user}",TRUE);
        return $getuser;
    }
    
}
